package com.mas.admin.biz.dal.mysql.permission;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mas.admin.biz.dal.dataobject.permission.RoleDO;
import com.mas.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;

/**
 * @author godyao
 * @description RoleMapper
 * @date 2023年02月03日00:51
 */
@Mapper
public interface RoleMapper extends BaseMapperX<RoleDO> {
    default Long selectCountByUpdateTimeGt(LocalDateTime maxUpdateTime) {
        return selectCount(new LambdaQueryWrapper<RoleDO>().gt(RoleDO::getUpdateTime, maxUpdateTime));
    }}
